package com.yao.club.entity.dto;

import com.yao.club.entity.Topic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.Date;
import java.util.List;

@Data
@Entity
@Table(name = "information_detail")
@ApiModel(description = "资讯信息")
public class InformationDetail {
    @Id
    @Column(name = "information_id", nullable = false, length = 64)
    private String informationId;

    @Column(name = "information_type_id", nullable = false, length = 64)
    private String informationTypeId;

    @Column(name = "information_type_name", length = 100)
    private String informationTypeName;

    @Column(name = "channel")
    private Byte channel;

    @Column(name = "channel_str", length = 20)
    private String channelStr;

    @Column(name = "nick_name", length = 100)
    private String nickName;

    @Column(name = "user_name", length = 50)
    private String userName;

    @Column(name = "title", nullable = false, length = 500)
    private String title;

    @Column(name = "source", length = 100)
    private String source;

    @Lob
    @Column(name = "content")
    private String content;

    @Column(name = "like_number")
    private Integer likeNumber;

    @Column(name = "comment_number")
    private Integer commentNumber;

    @Column(name = "share_number")
    private Integer shareNumber;

    @Column(name = "if_tip_off", length = 10)
    private String ifTipOff;

    @Column(name = "tip_off_number")
    private Integer tipOffNumber;

    @Column(name = "weight_score", precision = 5, scale = 2)
    private BigDecimal weightScore;

    @Column(name = "dynamic_sort")
    private Integer dynamicSort;

    @Column(name = "if_hot")
    private Boolean ifHot;

    @Column(name = "hot_sort")
    private Integer hotSort;

    @Column(name = "if_up")
    private Boolean ifUp;

    @Column(name = "if_up_str", length = 20)
    private String ifUpStr;

    @Column(name = "list_show_time", length = 20)
    private String listShowTime;

    @Column(name = "if_like")
    private Boolean ifLike;

    @Column(name = "if_collect")
    private Boolean ifCollect;

    @Column(name = "collect_number")
    private Integer collectNumber;

    @Column(name = "video", length = 1000)
    private String video;

    @Column(name = "del_flag")
    private int delFlag;

    @Column(name = "create_time", nullable = false)
    private Instant createTime;

    @Column(name = "create_by", length = 64)
    private String createBy;

    @Column(name = "update_time")
    private Instant updateTime;

    @Column(name = "update_by", length = 64)
    private String updateBy;

    @Lob
    @Column(name = "params")
    private String params;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "img_ids")
    private String imgIds;

}